package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.SysCountryIanguagesMapper;
import com.hckjsec.cloud.domain.SysCountryIanguages;
import com.hckjsec.cloud.service.ISysCountryIanguagesService;

/**
 * 公证国家-语种Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-16
 */
@Service
public class SysCountryIanguagesServiceImpl implements ISysCountryIanguagesService 
{
    @Autowired
    private SysCountryIanguagesMapper sysCountryIanguagesMapper;

    /**
     * 查询公证国家-语种
     * 
     * @param place 公证国家-语种ID
     * @return 公证国家-语种
     */
    @Override
    public SysCountryIanguages selectSysCountryIanguagesById(String place)
    {
        return sysCountryIanguagesMapper.selectSysCountryIanguagesById(place);
    }

    /**
     * 查询公证国家-语种列表
     * 
     * @param sysCountryIanguages 公证国家-语种
     * @return 公证国家-语种
     */
    @Override
    public List<SysCountryIanguages> selectSysCountryIanguagesList(SysCountryIanguages sysCountryIanguages)
    {
        return sysCountryIanguagesMapper.selectSysCountryIanguagesList(sysCountryIanguages);
    }

    /**
     * 新增公证国家-语种
     * 
     * @param sysCountryIanguages 公证国家-语种
     * @return 结果
     */
    @Override
    public int insertSysCountryIanguages(SysCountryIanguages sysCountryIanguages)
    {
        return sysCountryIanguagesMapper.insertSysCountryIanguages(sysCountryIanguages);
    }

    /**
     * 修改公证国家-语种
     * 
     * @param sysCountryIanguages 公证国家-语种
     * @return 结果
     */
    @Override
    public int updateSysCountryIanguages(SysCountryIanguages sysCountryIanguages)
    {
        return sysCountryIanguagesMapper.updateSysCountryIanguages(sysCountryIanguages);
    }

    /**
     * 批量删除公证国家-语种
     * 
     * @param places 需要删除的公证国家-语种ID
     * @return 结果
     */
    @Override
    public int deleteSysCountryIanguagesByIds(String[] places)
    {
        return sysCountryIanguagesMapper.deleteSysCountryIanguagesByIds(places);
    }

    /**
     * 删除公证国家-语种信息
     * 
     * @param place 公证国家-语种ID
     * @return 结果
     */
    @Override
    public int deleteSysCountryIanguagesById(String place)
    {
        return sysCountryIanguagesMapper.deleteSysCountryIanguagesById(place);
    }
}
